import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getConfig = {
  payLists(params) {
    return axios.post(`${base.bd}/admin/pay/lists`, qs.stringify(params));
  },
  payChangeShow(params) {
    return axios.post(`${base.bd}/admin/pay/show`, qs.stringify(params));
  },
  payInfo(params) {
    return axios.post(`${base.bd}/admin/pay/edit`, qs.stringify(params));
  },
  paySave(params) {
    return axios.post(`${base.bd}/admin/pay/saveedit`, qs.stringify(params));
  },
  //选择栏目
  getList(params) {
    return axios.post(`${base.bd}/admin/link/lists`, qs.stringify(params));
  },
  setPhoneIndex(params) {
    return axios.post(
      `${base.bd}/admin/banner/save_homepage`,
      qs.stringify(params)
    );
  },
  getIndexList(params) {
    return axios.post(`${base.bd}/admin/banner/homepage`, qs.stringify(params));
  },
  //短信记录
  getSmsRecord(params) {
    return axios.post(`${base.bd}/admin/sms/lists`, qs.stringify(params));
  },
  get_smsnum(params) {
    return axios.post(`${base.bd}/admin/admin_money/sms`, qs.stringify(params));
  },
  get_smspackage(params) {
    return axios.post(
      `${base.bd}/admin/admin_money/sms_package`,
      qs.stringify(params)
    );
  },
  get_smsrecharge(params) {
    return axios.post(
      `${base.bd}/admin/admin_money/sms_recharge`,
      qs.stringify(params)
    );
  },
  //查看消费红包规则
  getRedContent(params) {
    return axios.post(`${base.bd}/admin/coupon_txt/edit`, qs.stringify(params));
  },
  //编辑消费红包规则
  editRedContent(params) {
    return axios.post(`${base.bd}/admin/coupon_txt/saveedit`, qs.stringify(params));
  },
};
export default getConfig;
